var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        im.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        im.dispose()
    } else {
        if (status === a++) {
            im.askYesNo("看上去很普通的药。罗赛伦说一定要吃……\r\n要吃吃看吗？", 2, 2111009)
        } else {
            if (status === a++) {
                im.updateInfoQuest(3314, "a=1");
                im.sendNormalTalk("让人感觉很不舒服的药。\r\n回到#b罗赛伦#k那里去吧。", 2, 2111009, false, false);
                im.gainItem(2438888, -1);
                im.dispose()
            }
        }
    }
};